package com.nerve.secondhandcar.controller.model.reception;

import java.util.List;

import org.ko.core.websupport.page.Page;

import com.nerve.secondhandcar.domain.Brand;
import com.nerve.secondhandcar.domain.Car;
import com.nerve.secondhandcar.domain.car.CarCategory;

/**
 * @project: secondHandCarPlatform
 * @file: IndexModel.java
 * @package: com.nerve.secondhandcar.controller.model.reception
 * @description:
 *
 * @author: 集成显卡	1053214511@qq.com
				IBM GDC, zengxm@cn.ibm.com
 * @date&time: 2014-10-22
 * @change log:
 */
public final class IndexModel extends Page<Car> {
	private long id;
	private Car car;
	private List<Car> cars; 		//
	private List<Car> specialCars;	//特价车
	private List<Car> categoryCars;	//占标车
	private List<Car> newCars;		//最新上架
	
	private List<Brand> brands;
	private List<CarCategory> categorys;
	
	//搜索参数
	private String price;			//价格范围，格式为 0-10000 表示10000元内的车
	private long categoryId;		//类型id
	private String brand;			//品牌名称
	private String year;			//车龄，格式为 0-2，表示的是2年内的车
	private String type;			//车身类型，如三厢，SUV，MPV等
	private int special;			//是否显示特价车
	private String mileage;			//里程, 格式为0-2，表示的是2万公里内，单位是万
	private int grade;				//评级
	private String shift;			//变速箱
	
	public String getShift() {
		return shift;
	}

	public void setShift(String shift) {
		this.shift = shift;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public String getMileage() {
		return mileage;
	}

	public void setMileage(String mileage) {
		this.mileage = mileage;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public List<Car> getCars() {
		return cars;
	}

	public void setCars(List<Car> cars) {
		this.cars = cars;
	}

	public int getSpecial() {
		return special;
	}

	public void setSpecial(int special) {
		this.special = special;
	}

	public List<CarCategory> getCategorys() {
		return categorys;
	}

	public void setCategorys(List<CarCategory> categorys) {
		this.categorys = categorys;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(long categoryId) {
		this.categoryId = categoryId;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public List<Car> getSpecialCars() {
		return specialCars;
	}

	public void setSpecialCars(List<Car> specialCars) {
		this.specialCars = specialCars;
	}

	public List<Car> getCategoryCars() {
		return categoryCars;
	}

	public void setCategoryCars(List<Car> categoryCars) {
		this.categoryCars = categoryCars;
	}

	public List<Car> getNewCars() {
		return newCars;
	}

	public void setNewCars(List<Car> newCars) {
		this.newCars = newCars;
	}

	public List<Brand> getBrands() {
		return brands;
	}

	public void setBrands(List<Brand> brands) {
		this.brands = brands;
	}
}